package me.spring.cloud.components.starter.rabbitmq;

import me.spring.cloud.components.starter.rabbitmq.configure.RabbitMqConfiguration;
import me.spring.cloud.components.starter.rabbitmq.configure.SecondRabbitMqConfiguration;
import me.spring.cloud.components.starter.rabbitmq.properties.RabbitListenerProperties;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;

/**
 * 配置服务rabbitmq
 *
 * @author luffy
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@EnableConfigurationProperties(RabbitListenerProperties.class)
@Import({RabbitMqConfiguration.class, SecondRabbitMqConfiguration.class})
public @interface EnableRabbitMq {
}
